﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKRevitCode.ElmentSearchUtility.LinkDocumentSuite;
using ModelCheckUtility.ModelLayer;

namespace FrontRoomCheck.Model
{
	public class FrontRoomDoorPacker : BaseDoorPacker
	{
		public FrontRoomDoorPacker(FamilyInstance thisDoor, RevitLinkInstance useLinkInstance = null, ElementGeometryPacker inputElementGeometryPacker = null) : base(thisDoor, useLinkInstance, inputElementGeometryPacker)
		{
		}

		internal List<FrontRoomPacker> NearFrontRooms
		{
			get
			{
				List<FrontRoomPacker> list = new List<FrontRoomPacker>();
				foreach (BaseRoomPacker baseRoomPacker in base.LstConctRooms)
				{
					FrontRoomPacker frontRoomPacker = baseRoomPacker as FrontRoomPacker;
					if (frontRoomPacker != null)
					{
						list.Add(frontRoomPacker);
					}
				}
				return list;
			}
		}

		public bool IfKeep
		{
			get
			{
				return this.ifkeep;
			}
			set
			{
				this.ifkeep = value;
			}
		}

		public bool IsRight
		{
			get
			{
				return this.isRight;
			}
			set
			{
				this.isRight = value;
			}
		}

		private FrontRoomDoorKindEnum thisKind;

		private bool ifkeep;

		private bool isRight;
	}
}
